<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
include_once("./includes/paging.php");
$smarty->assign("nameact","Quản lý RSS FEED");
$table="rssfeed";
$limit=30;
$numpage=5;
$act="rssfeed";
$page=intval($_GET['page']);
$listpage= paging($table,$act,$page,$total,$start,$limit,$numpage);

$q = query("select * from $table limit $start,$limit");
while($r=fetch($q))
{
	$q1=query("select * from menu where id=$r[menuid]");
	$f1=fetch($q1);
	$r["menu"]=$f1["name"];
	$type=array(
	1 => "NgoiSao.VN",
	2 => "NgoiSao.NET",
	);
	$r["type"]=$type[$r["type"]];
	$r["lasttime"]=date("H:i d/m/Y",$r["lasttime"]);
	$rssfeed[]=$r;
}

$smarty->assign("cur_page",$page);
$smarty->assign("page",$listpage);
$smarty->assign("total",$total);
$smarty->assign("start_count",$start);
$smarty->assign("rssfeed",$rssfeed);
$smarty->display("rssfeed.htm");
?>